package com.example.design.patterns.geekbang.结构型.享元模式.应用在JavaString;

public class Test {
    public static void main(String[] args) {
        String s1 = "小争哥";
        String s2 = "小争哥";
        String s3 = new String("小争哥");

        System.out.println(s1 == s2);
        System.out.println(s1 == s3);

    }
}
